package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.damain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee fingbyusername(String username);

    List<Employee> fingbyname(String name);
//保存
    void save(Employee employee);
//根据id查
    Employee findbyid(long id);

    void update(Employee employee);
}
